package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.IndustryEducationMapper;
import com.ruoyi.system.domain.IndustryEducation;
import com.ruoyi.system.service.IIndustryEducationService;

/**
 * 查看内容Service业务层处理
 * 
 * @author coderChen
 * @date 2024-01-09
 */
@Service
public class IndustryEducationServiceImpl implements IIndustryEducationService 
{
    @Autowired
    private IndustryEducationMapper industryEducationMapper;

    /**
     * 查询查看内容
     * 
     * @param id 查看内容主键
     * @return 查看内容
     */
    @Override
    public IndustryEducation selectIndustryEducationById(Long id)
    {
        return industryEducationMapper.selectIndustryEducationById(id);
    }

    /**
     * 查询查看内容列表
     * 
     * @param industryEducation 查看内容
     * @return 查看内容
     */
    @Override
    public List<IndustryEducation> selectIndustryEducationList(IndustryEducation industryEducation)
    {
        return industryEducationMapper.selectIndustryEducationList(industryEducation);
    }

    /**
     * 新增查看内容
     * 
     * @param industryEducation 查看内容
     * @return 结果
     */
    @Override
    public int insertIndustryEducation(IndustryEducation industryEducation)
    {
        industryEducation.setCreateTime(DateUtils.getNowDate());
        return industryEducationMapper.insertIndustryEducation(industryEducation);
    }

    /**
     * 修改查看内容
     * 
     * @param industryEducation 查看内容
     * @return 结果
     */
    @Override
    public int updateIndustryEducation(IndustryEducation industryEducation)
    {
        return industryEducationMapper.updateIndustryEducation(industryEducation);
    }

    /**
     * 批量删除查看内容
     * 
     * @param ids 需要删除的查看内容主键
     * @return 结果
     */
    @Override
    public int deleteIndustryEducationByIds(Long[] ids)
    {
        return industryEducationMapper.deleteIndustryEducationByIds(ids);
    }

    /**
     * 删除查看内容信息
     * 
     * @param id 查看内容主键
     * @return 结果
     */
    @Override
    public int deleteIndustryEducationById(Long id)
    {
        return industryEducationMapper.deleteIndustryEducationById(id);
    }
}
